package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntYearReportBasicDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业年报简要信息
 *
 * @author syw
 * @since 2023-07-20
 **/
@Data
@ApiModel("企业年报简要信息")
@Builder
public class EntReportSimpleVO {
    @ApiModelProperty("年报日期") private String anchedate;
    @ApiModelProperty("年报 ID") private String ancheid;
    @ApiModelProperty("年报年份") private String ancheyear;

    public static EntReportSimpleVO getEntReportSimple(EntYearReportBasicDTO data) {
        return EntReportSimpleVO.builder()
                .anchedate(data.getANCHEDATE())
                .ancheid(data.getANCHEID())
                .ancheyear(data.getANCHEYEAR())
                .build();
    }

}
